Line Chart

The Line chart displays information as a series of data points called markers. The markers are connected to each other by a line.

The Line chart consists of two axes, in which x-axis contains the value of the grouping parameter(s) and the y-axis contains the values of the aggregation parameter. It is similar to a Column chart, except that, a Column chart usually displays discrete values, whereas a line chart visualizes a trend in continuous data.

../_images/LP_DB_Widget_LineChart.png

Count of logs

The following query gives the output shown above.

source_address=* | chart sum(datasize) as Datasize by source_address

Response Types Supported

The Line chart supports two aggregation response types for representation of search results in the visualization. They are:

Response Type

General Syntax

Single Aggregation with Grouping

| chart aggregation_parameter by grouping_parameter1, grouping_parameter2, ........, grouping_parametern

Timechart Single Aggregation without Grouping

| timechart aggregation_parameter

Single Aggregation with Grouping

Example:

severity=* | chart count() by severity
../_images/LP_Search_SAWG_Line.png

Line chart for Single Aggregation with Grouping

You can refer to Single Aggregation with Grouping for more details.

Timechart Single Aggregation without Grouping

Example:

| timechart avg(datasize)
../_images/LP_Search_TSAWoG_Line.png

Line chart for Timechart Single Aggregation without Grouping

You can refer to Timechart Single Aggregation without Grouping for more details.


Helpful?

We are glad this guide helped.


Please don't include any personal information in your comment

Contact Support